export const menuList = [
  { name: "新增", value: "save", comment: "勾选生成新增数据按钮菜单及接口" },
  { name: "更新", value: "update", comment: "勾选生成更新数据按钮菜单及接口" },
  { name: "读取", value: "read", comment: "勾选生成读取数据按钮菜单及接口" },
  { name: "删除", value: "delete", comment: "勾选生成删除按钮菜单及接口" },
  {
    name: "回收站列表",
    value: "recycle",
    comment: "勾选生成移到回收站列表按钮及接口，确定该表有delete_time字段，且模型引入了软删除。"
  },
  {
    name: "回收站恢复",
    value: "recovery",
    comment: "勾选生成回收站恢复按钮菜单及接口。."
  },
  {
    name: "修改状态",
    value: "changeStatus",
    comment: "勾选生成修改状态按钮菜单及接口，该接口用于单个字段状态修改"
  }
  // { name: '导入', value: 'import', comment: '勾选生成导入按钮菜单、接口文件' },
  // { name: '导出', value: 'export', comment: '勾选生成导出按钮菜单、接口文件' },
]

export const realtionsType = [
  { name: "一对一", value: "hasOne" },
  { name: "一对多", value: "hasMany" },
  { name: "一对一（反向)", value: "belongsTo" },
  { name: "多对多", value: "belongsToMany" }
]

export const queryType = [
  { label: "=", value: "eq" },
  { label: "!=", value: "neq" },
  { label: ">", value: "gt" },
  { label: ">=", value: "gte" },
  { label: "<", value: "lt" },
  { label: "<=", value: "lte" },
  { label: "LIKE", value: "like" },
  { label: "IN", value: "in" },
  { label: "NOT IN", value: "notin" },
  { label: "BETWEEN", value: "between" }
]

// 页面控件
export const viewComponent = [
  { label: "输入框", value: "input" },
  { label: "密码框", value: "password" },
  { label: "文本域", value: "textarea" },
  { label: "数字输入框", value: "inputNumber" },
  { label: "标签输入框", value: "inputTag" },
  // { label: '提及', value: 'mention' },
  { label: "开关", value: "switch" },
  { label: "滑块", value: "slider" },
  { label: "下拉框", value: "select" },
  { label: "树形下拉框", value: "treeSelect" },
  { label: "单选框", value: "radio" },
  { label: "复选框", value: "checkbox" },
  { label: "日期选择器", value: "date" },
  { label: "时间选择器", value: "time" },
  { label: "评分器", value: "rate" },
  { label: "级联选择器", value: "cascader" },
  // { label: '数据穿梭框', value: 'transfer' },
  { label: "用户选择器", value: "userSelect" },
  { label: "用户信息", value: "userinfo" },
  { label: "省市区联动", value: "cityLinkage" },
  // { label: '子表单', value: 'formGroup' },
  { label: "上传组件", value: "upload" },
  // { label: '资源选择器', value: 'selectResource' },
  { label: "富文本控件", value: "editor" },
  { label: "wangEditor富文本", value: "wangEditor" },
  { label: "代码编辑器", value: "codeEditor" }
]
